import React from 'react';
import "../assets/css/popup.css"

export default function Popup(props) {
    return (
        <div className="popup" onClick={()=>props.closePopup()}>
            <div className="popup_content" style={{borderRadius:props.radius}} onClick={(e)=>e.stopPropagation()}>
                <i onClick={()=>props.closePopup()} className="popup_content_close" style={{backgroundImage:`url(${require('../assets/images/close.png').default})`}}></i>
                {props.children}
            </div>
        </div>
    )
}
